package com.provider.service.impl;

import com.domain.Pagination;
import com.domain.Provider;
import com.provider.dao.FindProviderDao;
import com.provider.dao.impl.FindProviderDaoImpl;
import com.provider.service.ShowProviderService;

public class ShowProviderServiceImpl implements ShowProviderService {
	private FindProviderDao findProviderDao = new FindProviderDaoImpl();
	@Override
	public void show(Pagination<Provider> pagination) {
		pagination.setCount(findProviderDao.findCount());
		pagination.setList(findProviderDao.findList(pagination));
	}

}
